package com.infindo.common;

import android.app.Activity;
import android.content.Context;

import com.infindo.iflower.ImageAdapter;
import com.infindo.iflower.util.FileUtil;

public class Constant {
	public static final String FAV_PATH = FileUtil.getSdcard()+"/iflower/fav01/" ;//+ "/fav01/";
	public static final String FAV_PATH_TEMP = FileUtil.getSdcard()+"/iflower/temp/" ;//+ "/fav01/";
	public static final String FILENAME_FROM_FAVORITE = "favorite";
	public static final String FILENAME_FROM_GALLERY = "gallery";
	public static final String ClASS_METHOD = "classMethod";
	public static ImageAdapter singletonImageDefault = null;
	public static ImageAdapter singletonImageFavorite = null;
	
	public static ImageAdapter getImageAdapterInstanceDefault(Context c,Activity activity, String[] picNames,String filetype){
		if(singletonImageDefault == null){
			singletonImageDefault = new ImageAdapter(c, activity, picNames, filetype);
		}
		return singletonImageDefault;
	}
	
	public static ImageAdapter getImageAdapterInstanceFavorite(Context c,Activity activity, String[] picNames,String filetype){
//		if(singletonImageFavorite == null){
			singletonImageFavorite = new ImageAdapter(c, activity, picNames, filetype);
//		}
		return singletonImageFavorite;
	}
}
